__author__ = 'kzv'
from mobitile.pages.internal_admin_page import InternalAdminPage

class UserCreatePage(InternalAdminPage):

    @property
    def user_name_field(self):
        return self.driver.find_element_by_xpath(".//input[contains(@id, 'username')]")

    @property
    def user_email_field(self):
        return self.driver.find_element_by_xpath(".//input[contains(@id, 'email')]")

    @property
    def user_phone_field(self):
        return self.driver.find_element_by_xpath(".//input[contains(@id, 'phone')]")

    @property
    def user_first_name_field(self):
        return self.driver.find_element_by_xpath(".//input[contains(@id, 'firstName')]")

    @property
    def user_last_field(self):
        return self.driver.find_element_by_xpath(".//input[contains(@id, 'lastName')]")

    @property
    def user_create_and_list_button(self):
        return self.driver.find_element_by_name("btn_create_and_list")



